package com.wang.a;

import com.wang.dto.GoodsOrderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wangyandong
 * @date 2020/1/31 23:22
 */

@FeignClient(value = "wang-spring-cloud-order",path = "/outer/order")
public interface GoodsOrderFeign {
    @GetMapping("/getById/{orderId}")
    GoodsOrderDTO getById(@RequestParam("orderId") @PathVariable("orderId") Integer orderId);

}
